package com.edu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 课程播放记录(学习记录)
 * </p>
 *
 * @author GongChengShi
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EduCourseStudyhistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("USER_ID")
    private Integer userId;

    /**
     * 课程id
     */
    @TableField("COURSE_ID")
    private Integer courseId;

    /**
     * 节点id
     */
    @TableField("KPOINT_ID")
    private Integer kpointId;

    /**
     * 观看次数,累加
     */
    @TableField("PLAYERCOUNT")
    private Integer playercount;

    /**
     * 课程名称
     */
    @TableField("COURSE_NAME")
    private String courseName;

    /**
     * 节点名称
     */
    @TableField("KPOINT_NAME")
    private String kpointName;

    /**
     * playercount小于20时记录,备注观看的时间，叠加
     */
    @TableField("DATABACK")
    private String databack;

    /**
     * 最后观看时间
     */
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;


}
